import request from '@/utils/request'

// 列表
export function fetchCommentsByTopicId(topic_Id) {
    return request(({
        url: '/comment/get_comments',
        method: 'get',
        params: { topicID: topic_Id}
    }))
}

// 添加留言
export function pushComment(data) {
    return request(({
        url: '/comment/add_comment',
        method: 'post',
        data: data
    }))
}



